package cn.ztr.ymcc.service;

import cn.ztr.ymcc.domain.CourseOrder;
import cn.ztr.ymcc.dto.OrderDto;
import cn.ztr.ymcc.result.JsonResult;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ztr
 * @since 2023-03-08
 */
public interface ICourseOrderService extends IService<CourseOrder> {

    /**
     * 普通订单下单
     * @param orderDto
     * @return
     */
    JsonResult placeOrder(OrderDto orderDto,Long loginId);

    /**
     * 秒杀下单
     * @param orderDto
     * @param request
     * @return
     * @throws Exception
     */
    JsonResult killPlaceOrder(OrderDto orderDto, Long loginId);
}
